import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isLogin: localStorage.getItem('isLogin'),
  },
  mutations: {
    changeLogin(state, isOK) {
	  localStorage.setItem('isLogin',isOK);
      state.isLogin = isOK;
    },
  },
  getters: {
    getisLogin(state) {
      return state.isLogin;
    },
  },
  actions: {
  },
  modules: {
  }
})
